from base import Base
from selenium.webdriver.common.by import By
class Page(Base):
    def sousuo(self):
        loc=(By.XPATH,'//android.widget.TextView[@text="搜索菜谱"]')
        ele=self.find_ele(loc)
        return ele

    def shuru(self):
        loc=(By.CLASS_NAME,'android.widget.EditText')
        ele=self.find_ele(loc)
        return ele

    def djss(self):
        loc=(By.XPATH,'//android.widget.TextView[@text="搜索"]')
        ele=self.find_ele(loc)
        return ele

    def kaiwei(self):
        loc=(By.XPATH,'//android.widget.ImageView[@resource-id="com.xiachufang:id/common_photo_image_view"]')
        ele=self.find_ele(loc)
        return ele

    def shoucang(self):
        loc=(By.ID,'com.xiachufang:id/recipe_bto_nav_bar_collect')
        ele=self.find_ele(loc)
        return ele

    def duanyan1(self):
        loc=(By.XPATH,'//android.widget.TextView[@resource-id="com.xiachufang:id/common_first_text" and @text="开胃凉拌菜"]')
        ele=self.find_ele(loc)
        return ele

    def qk(self):
        loc=(By.ID,'com.xiachufang:id/search_suggest_right_text_view')
        ele=self.find_ele(loc)
        return ele
    def duanyan2(self):
        loc=(By.XPATH,'//android.widget.EditText[@resource-id="com.xiachufang:id/search_edit_text"]')
        ele=self.find_ele(loc)
        return ele














